import {authRequest} from "@/request";
// 登陆
export const postLogin = (body:any)=>{
    return authRequest.post("/index/login",body);
}
// 获取个人信息
export const getInfo = ()=>{
    return authRequest.get("/index/info");
    // return authRequest.get("/index/info",{
    //     headers:{
    //         token:localStorage.getItem("token") as string
    //     }
    // });
}
// 退出登陆
export const postLogout = ()=>{
    return authRequest.post("/index/logout");
}